package com.yuexunit.finance.project.entity.lexicon;

public enum ApplicationSimpleStateEnum {

	UNKNOWN("未知"), NOT_APPROVE("未审批"), AGREE("同意"), DISAGREE("拒绝"), CANCEL("取消");
	private final String paramType;

	private ApplicationSimpleStateEnum(String paramType) {
		this.paramType = paramType;
	}

	public String getValue() {
		return paramType;
	}

	/**
	 * 数字转为枚举类型
	 * @param value 申请状态 0:未知/1:未审批/2:同意/3:拒绝/4:取消
	 * @return 参数类型枚举
	 */
	public static ApplicationSimpleStateEnum valueOf(Integer value) {
		if (value == null || values().length <= value.intValue()) {
			return UNKNOWN;
		}
		return values()[value.intValue()];
	}

}
